// 首页：
// 	https://m.you.163.com/xhr/index.json?__timestamp=1662542610854&

// 	推荐： https://m.you.163.com/xhr/index.json?__timestamp=1630131808529
import { instanceW } from '../../utils/request'

/**
 * @description 获取推荐页的数据
 * @returns 
 */
export const getMainData = () => {
  return instanceW.get('xhr/index.json')
}

/**
 * @description 底部详情数据
 * @returns 
 */
export const getdddDetials = () => {
  return instanceW.post('xhr/index/items.json', {
    "itemIdsStr": "",
    "size": 20
  })
}


/**
 * @description 获取点击的卡的数据
 * @param id 点击的card的id
 * @returns 
 */
export const getTopCategoryList = (id: number) => {
  return instanceW.get<any,any>(`item/list.json?categoryId=${id}`)
}